package com.wxm.killing.mq.common.exception;

import com.wxm.killing.mq.common.enums.HttpStatusEnum;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
public class BaseException extends RuntimeException{

    private int errStatus;

    private String errMsg;

    public BaseException(int errStatus, String errMsg) {
        super();
        this.errStatus = errStatus;
        this.errMsg = errMsg;
    }

    public BaseException(HttpStatusEnum httpStatusEnum) {
        super();
        this.errStatus = httpStatusEnum.getStatus();
        this.errMsg = httpStatusEnum.getMsg();
    }

}
